package com.haiqiu.tool.excel.entity;


import com.haiqiu.tool.excel.annotation.HqExcel;
import com.haiqiu.tool.excel.utils.HqDateUtils;

import java.util.Date;

public class Person {

    @HqExcel(name = "编号",column = "E")
    private Integer id;

    @HqExcel(name = "姓名",column = "F")
    private String name;

    @HqExcel(name = "年龄",column = "B")
    private Integer age;

    @HqExcel(name = "地址",column = "A")
    private String address;

    @HqExcel(name = "价格",isMark = true,column = "G")
    private Float price;

    @HqExcel(name = "出生年月",dateFormat = HqDateUtils.YMDHMS,column = "C")
    private Date birthday;

    @HqExcel(name = "状态",replace = {"0_激活","1_禁用","2_未知"},column = "D")
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Person(){}

    public Person(Integer id, String name, Integer age, String address, Float price, Date birthday, Integer status) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.address = address;
        this.price = price;
        this.birthday = birthday;
        this.status = status;
    }
}
